zz_

index.js

zzmq.dev@gmail.com[dev3]/mathkit[add-mean-numbers-function-returns] / index.js @ 2c53fff8 Download
Ladder Summary

Provides the public API of the mathkit package, exporting the sum function and re‑exporting utility functions isOdd, isEven, min, and the newly added isPrime from their respective modules.

 export function sum(...numbers) {
  return numbers.reduce((total, n) => total + n, 0);
 }
 export { isOdd } from "./src/isOdd.js";
 export { isEven } from "./src/isEven.js";
 export { min } from "./src/min.js";
+export { isPrime } from "./src/isPrime.js";